/**
 * Created by Aber on 17/3/23.
 */
// 加载模块
module.exports = function(ngModule) {
    require('./user_message.scss');
    ngModule.directive('userMessage',function () {
        return {
            restrict: 'E',//元素(element)
            scope: {},
            replace: true,
            template: require('./user_message.html'),//模板
            controllerAs: 'user_message',// <=> $scope.vm = {greeting: '你好，我是卡哥'}
            controller: function () {
            }
        }
    });//定义指令，对应页面中的<hello-world></hello-world>
}